package com.example.springsecuritydemo.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author Zenan Chen
 * @date 2023/4/13 16:28
 */
@Data
@TableName(value = "role")
@EqualsAndHashCode(callSuper = false)
public class Role {

    @ApiModelProperty(value = "主键", example = "123")
    @TableField("id")
    @TableId(type = IdType.AUTO)
    private String id;

    @ApiModelProperty(value = "用户id", example = "123")
    @TableField("user_id")
    private String userId;

    @ApiModelProperty(value = "角色名称", example = "管理员")
    @TableField("name")
    private String name;


}
